﻿namespace Skynet.CommonLibrary.AOP.Exception
{
   public class ExceptionAopSink :  IAfterHandle
    {
        #region IAfterHandle 成员

        public System.Runtime.Remoting.Messaging.IMessage SyncAfterProcess(System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper replyMsg)
        {
            if (replyMsg.Exception != null)
            {
                replyMsg.ReturnValue = null;
            }
            return replyMsg;
        }

        #endregion
    }
}
